import query from '@dfeidao/atom-nodejs/db/query';
// import { systemid } from './config';
interface Message {
	productid: string;
}

export default async function atom(msg: Message, action_id: string, session_id: string, spaceid: string) {
	const systemid = '12';
	const { exec, prepare } = query(action_id, session_id, systemid);
	const productid = msg.productid;
	prepare('pub_role_type', ['_id', 'role_type_name'], { productid }, 199, 1, [], []);
	const [data] = await exec();
	return data;
}
